home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / elemmenu.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  1KB  |  37 lines

  1. /*  Menu with elements as items.
  2.     It shows the "Menu wits vector buttons (Elements)".
  3. */
  4.  
  5. #ifndef __ELEMENT_MENU_H_
  6. #define __ELEMENT_MENU_H_
  7.  
  8. #include "choicebx.h"
  9.  
  10. class ElementMenu : public ChoiceBox
  11.     {
  12.     protected:
  13.         int element_pattern;
  14.     public:
  15.     ElementMenu(rect coordinates, char* fName = "", char* h = "",
  16.            char* HOT = NULL, int POS = 1, int START = 1,
  17.                loc ITEMSIZE = loc(2, 1), int* ITEMLIST = NULL,
  18.            loc ITEMDISTANCE = loc(1, 0),
  19.            rect STATUSPOS = rect(0, 0, 79, 25), int STATUSTYPE = 0,
  20.            char** STATUSSTRINGS = NULL, int* STATUSLIST = NULL,
  21.            int res = FIXED, int s = 0, BORDERS b_type = SHOW_BORDER,
  22.            BORDERS hdr_b_type = SHOW_BORDER, int pat = 0,
  23.            int hdr_pat = 0, int elem_pat = 0)
  24.     : ChoiceBox(coordinates, fName, h, HOT, POS, START,
  25.            ITEMSIZE, /* ITEMSTRINGS */ NULL, ITEMLIST,
  26.            ITEMDISTANCE, STATUSPOS, STATUSTYPE, STATUSSTRINGS,
  27.            STATUSLIST, res, s, b_type, hdr_b_type, pat, hdr_pat)
  28.            {
  29.                    element_pattern = elem_pat;
  30.            calcConsts();
  31.            }
  32.  
  33.     virtual void calcItemsNumber();
  34.     virtual void showItem();
  35.     };
  36.  
  37. #endif __ELEMENT_MENU_H_